﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace GUI.Models.AdminModels
{
    public class Arad
    {
        public int Id { get; set; }
        public DateTime DateCreation { get; set; }
        public bool IsActive { get; set; }
        public int AuteurId { get; set; }

        public string  NomAuteur { get; set; }
       public string PrenomAuteur { get; set; }

       public string  ProfilAuteur { get; set; }


       public string Title { get; set; }

       //public string LabelDateCreation
       //{
       //    get
       //    {
       //        if (DateCreation != null) { return DateCreation.ToShortDateString(); } else { return string.Empty; }
       //    }
       //}

       public string  ArticleContenent { get; set; }
      
       
    }


    public class ArticleDetail
    {
        public int Id { get; set; }
        public string shtime { get; set; }



        [UIHint("tinymce_jquery_full"), AllowHtml]
        public string ArticleContenent { get; set; }

        public int AuteurId { get; set; }

        public string Title { get; set; }

        public byte[] ImageBytes { get; set; }
    }
}